package com.heaven.dao;

import java.sql.SQLException;
import java.util.List;

public interface Dao<DTO> {
	public abstract DTO select(int pk) throws ClassNotFoundException, SQLException;
	public abstract int insert(DTO dto) throws ClassNotFoundException, SQLException;
	public abstract int update(DTO dto) throws ClassNotFoundException, SQLException;
	public abstract int delete(DTO dto) throws ClassNotFoundException, SQLException;
	public abstract List<DTO> selectAll() throws ClassNotFoundException, SQLException;
	public abstract int deleteAll() throws ClassNotFoundException, SQLException;
}
